package course.view;

import java.awt.Font;
import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import course.controller.CourseControllerListener;
import course.po.Dean;
import course.service.impl.CourseServiceImpl;

public class DJPanel extends JPanel{
	private JPanel p2;
	private JPanel p13;
	private JPanel p14;
	private JPanel p15;
	private JPanel p16;
	private JPanel p17;
	private JPanel p9;
	private JPanel p10;
	private JPanel p18;
	private CourseControllerListener controllerListener;
	public CourseServiceImpl courseService;
	public DJPanel() {
		this.controllerListener = new CourseControllerListener();
		this.controllerListener.setDJPanel(this);


		// 教务员个人信息界面
		p9 = new JPanel();
		p10 = new JPanel();
		p17 = new JPanel();
		p18 = new JPanel();
			p13 = new JPanel();
			p14 = new JPanel();
			p15 = new JPanel();
			p16 = new JPanel();
			courseService = new CourseServiceImpl();
			Dean dea= courseService.getDean(CourseControllerListener.nameInput);
			this.setLayout(new GridLayout(8, 1));
			this.add(p9);
			this.add(p10);
			this.add(p13);
			this.add(p14);
			this.add(p15);
			this.add(p16);
			this.add(p17);
			this.add(p18);
			JLabel person1 = new JLabel("教职工号：" + dea.getDeaNo());
			JLabel person2 = new JLabel("姓名：" + dea.getDeaName());
			JLabel person3 = new JLabel("性别：" + dea.getDeaSex());
			JLabel person4 = new JLabel("年龄：" + dea.getDeaAge());
			person1.setFont(new Font("Dialog", 1, 25));
			person2.setFont(new Font("Dialog", 1, 25));
			person3.setFont(new Font("Dialog", 1, 25));
			person4.setFont(new Font("Dialog", 1, 25));
			p13.add(person1);
			p14.add(person2);
			p15.add(person3);
			p16.add(person4);
	
		}
}
